package net.lahuobao.export.datasoruce.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import net.lahuobao.export.datasoruce.annotation.ExportField;

@Entity
@Table(name = "finance_detail", schema = "")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class FinanceDetail implements java.io.Serializable{

	@ExportField(title="主键",isShow=0)
	private int id ;
	@ExportField(title="LHB账户名",sort=10)
	private String organizationName;
	@ExportField(title="用户名",sort=20)
	private String userName;
	@ExportField(title="发生时间",sort=30,isTranf=1,tranfType=2)
	private Date operateTime;
	@ExportField(title="业务类型",sort=40,isTranf=1,dictType="serviceType",tranfType=1)
	private String operateType;
	@ExportField(title="交易账户",sort=50)
	private String transactionName;
	@ExportField(title="订单号",sort=60)
	private String orderId;
	@ExportField(title="运单号",sort=70)
	private String waybillNumber;
	@ExportField(title="期初余额",sort=80)
	private BigDecimal beforeAmount;
	@ExportField(title="收入金额",sort=90)
	private BigDecimal plusamount;
	@ExportField(title="支出金额",sort=100)
	private BigDecimal payamount;
	@ExportField(title="期末余额",sort=110)
	private BigDecimal afterAmount;
	@ExportField(title="账户id",sort=120,isShow=0)
	private Integer accountId;
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@Column(name ="ID",nullable=false,length=36)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	@Column(name ="account_id",nullable=true,length=200)
	public Integer getAccountId() {
		return accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}
	@Column(name ="organization_name",nullable=true,length=200)
	public String getOrganizationName() {
		return organizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}
	@Column(name ="user_name",nullable=true,length=200)
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	@Column(name ="operate_time",nullable=true,length=200)
	public Date getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
	}
	@Column(name ="operate_type",nullable=true,length=200)
	public String getOperateType() {
		return operateType;
	}

	public void setOperateType(String operateType) {
		this.operateType = operateType;
	}
	@Column(name ="transaction_name",nullable=true,length=200)
	public String getTransactionName() {
		return transactionName;
	}

	public void setTransactionName(String transactionName) {
		this.transactionName = transactionName;
	}
	@Column(name ="order_id",nullable=true,length=200)
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	@Column(name ="waybill_number",nullable=true,length=200)
	public String getWaybillNumber() {
		return waybillNumber;
	}

	public void setWaybillNumber(String waybillNumber) {
		this.waybillNumber = waybillNumber;
	}
	@Column(name ="before_amount",nullable=true,length=200)
	public BigDecimal getBeforeAmount() {
		return beforeAmount;
	}

	public void setBeforeAmount(BigDecimal beforeAmount) {
		this.beforeAmount = beforeAmount;
	}
	@Column(name ="plusamount",nullable=true,length=200)
	public BigDecimal getPlusamount() {
		return plusamount;
	}

	public void setPlusamount(BigDecimal plusamount) {
		this.plusamount = plusamount;
	}
	@Column(name ="payamount",nullable=true,length=200)
	public BigDecimal getPayamount() {
		return payamount;
	}

	public void setPayamount(BigDecimal payamount) {
		this.payamount = payamount;
	}
	@Column(name ="afterAmount",nullable=true,length=200)
	public BigDecimal getAfterAmount() {
		return afterAmount;
	}

	public void setAfterAmount(BigDecimal afterAmount) {
		this.afterAmount = afterAmount;
	}
	
	
	

}
